using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using CommunityServer.Components;
using CommunityServer.Blogs.Components;

namespace CommunityServerStuff.Controls
{
    [Obsolete("This control is not necessary for CS2007. It will be removed in future versions.", false)] 
    public class ReallySimpleDiscoveryHeader : LiteralControl
    {

        protected override void Render(HtmlTextWriter writer)
        {
            CSContext csContext = CSContext.Current;
            string url = Globals.HostPath(csContext.Context.Request.Url) + SiteUrls.Instance().UrlData.FormatUrl("blog_ReallySimpleDiscovery", csContext.ApplicationKey);
            writer.Write("<link rel=\"editUri\" type=\"application/rsd+xml\" href=\"{0}\" title=\"RSD\" />", url);

        }
    }

}